window.onload = function foo() {
	isWeiXin();

	function isWeiXin() {
		var ua = window.navigator.userAgent.toLowerCase();
		if (ua.match(/MicroMessenger/i) == 'micromessenger') {
			document.getElementById("mask_wrapper").style.display = "block";
		}
	};
	/*window.onload = function() {
		change();
	};*/

	/*function change() {
		var height = document.body.clientHeight;
		var waph = document.getElementById("wrapper").offsetHeight;
		var copydom = document.getElementById("copyRight");
		if (height <= 470) {
			copydom.className = "copyRight copyRightRelative";
		} else {
			copydom.style.display = 'block';
			copydom.className = "copyRight";
		}
	};*/

	//监听窗口变化重置html font-size，基数为50px~100px, 用于rem单位控制
	var handlerOrientationChange = function() {
		var htmlWidth = (window.innerWidth <= 320) ? 320 : ((window.innerWidth >= 640) ? 640 : window.innerWidth);
		var fontSize = 50 * (htmlWidth / 320);
		document.documentElement.style.fontSize = fontSize + "px";
		//change();
	};
	//window.onresize = handlerOrientationChange;
	setTimeout(function() {
		//handlerOrientationChange();
	}, 0);
}